package com.wanbatv.wangwangba.util;

import com.wanbatv.wangwangba.model.entity.AuthenticationData;
import com.wanbatv.wangwangba.model.entity.OrderData;
import com.wanbatv.wangwangba.model.entity.PayData;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by 俞亚楠 on 2016/7/28.
 */
public interface GitPayService {
    @GET("common/wpay/check/{appid}")
    Call<AuthenticationData> getAuthentication(@Path("appid")String appid, @Query("userid")String userid);

    @GET("common/subjects/{appid}")
    Call<PayData> getPay(@Path("appid")String appid, @Query("userid")String flavor);

    //    @POST("")
//    Call<String> getWeixin(@Field("DEMA")String J,@Field("XIYA") int a);
    @POST("common/wpay/getorder")
    Call<OrderData> getorder(@Field("partner")String partner, @Field("subject")String subject,
                             @Field("subjectid")String subjectid, @Field("price")String price,
                             @Field("provider")String provider, @Field("stb")String stb,
                             @Field("flavor")String flavor);
}
